use serde::{Deserialize, Serialize};
use validator::Validate;

#[derive(Serialize, Deserialize, Validate, Debug, Clone)]
pub struct AddParams {
    pub locator: cidr::Ipv6Cidr,
}

#[derive(Serialize, Deserialize, Validate, Debug, Clone, Default, PartialEq)]
pub struct UpdateParams {
    pub locator: Option<cidr::Ipv6Cidr>,
}

#[derive(Serialize, Deserialize, Validate, Debug, Clone, Default)]
pub struct Filter {
    pub endpoint_id: Option<String>,
    pub locator: Option<cidr::Ipv6Cidr>,
}